package ecs.dogear.app;

public class AddUserTransaction implements Transaction{
	private String name;
	private int userId;

	public AddUserTransaction(int userId, String name) {
		this.userId = userId;
		this.name = name;
	}

	public void execute() {
		User user = new User(name);
		CommenterDatabase.addUser(userId,user);
	}

}
